package edu.zut.pioneer.member.domain;


import edu.zut.pioneer.base.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.Table;

@Entity
@Table(name="member")

public class Member extends BaseEntity<Long> {

    @Column(name="name")
    private String name;
    @JoinColumn(name = "member_type_id")
    @Column(name="Member_type_id")
    private long type_id;


    public Member(){}

    public Member(String name, long type_id) {
        this.name = name;
        this.type_id = type_id;
    }

    @Override
    public String toString() {
        return "Member{" +"name='" + name + '\'' + ", type_id='" + type_id +'}';
    }

    public String getName() {
        return name;
    }

    public long getType_id() {
        return type_id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setType_id(long type_id) {
        this.type_id = type_id;
    }
}
